package com.patterns.observer;

public class Test {
	public static void main(String[] args) {
		//观察者订阅
		Subject subject = new ConcreteSubject();
		subject.register(new ConcreteObserver("张三"));
		subject.register(new ConcreteObserver("李四"));
		
		//发布者推送消息
		subject.send("Hello World!!!");
	}
}
